home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD004b.dsk
/
HI-RES.METRONOME.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
3KB
|
96 lines
10 REM HI-RES METRONOME
20 REM IF CTRL-C THEN TEXT
30 ONERR GOTO 560
40 GOSUB 460: REM POKES
50 REM SET HIRES MODE, CLEAR TEXT WINDOW, AND MOVE CURSORTO BOTTOM OF SCREEN
60 HGR : HOME : VTAB 21
70 REM PRINT TITLE,ETC.
80 INVERSE
90 HTAB 12: PRINT "APPLE ][ METRONOME"
100 HTAB 12: PRINT " ": NORMAL
110 HTAB 9: PRINT "PAD";: INVERSE : PRINT "DLE #0 CONTROLS TE";: NORMAL : PRINT "MPO"
120 HTAB 6: PRINT "PADDLE";: INVERSE : PRINT " #1 CONTROLS STEP";: NORMAL : PRINT " VALUE";
130 REM DRAW METRONOME
140 HCOLOR= 2
150 FOR X = 80 TO 200: HPLOT 140,40 TO X,159: NEXT
160 REM X & Y ARE COORDINATES ATWHICH TO DRAW PENDULUM;SET COLOR
170 X = 140:Y = 155: HCOLOR= 3
180 SCALE= 55
190 REM LEFT TO RIGHT;R IS ROT- ATION;STEP BY A FRACTION OF PADDLE(1)
200 FOR R = 185 TO 199 STEP PDL(1)/50 +1
210 ROT= R
220 REM DRAW PENDULUM
230 XDRAW 1 AT X,Y
240 REM PAUSE
250 FOR T = 1 TO PDL(0): NEXT
260 REM ERASE PENDULUM
270 XDRAW 1 AT X,Y
280 NEXT
290 REM TONE
300 XDRAW 1 AT X,Y: POKE 768,255: POKE 769,10: CALL 770: XDRAW 1 AT X,Y
310 REM LEFT TO RIGHT STEP PADDLE(0)
320 FOR R = 199 TO 185 STEP - PDL(1)/50 -1
330 ROT= R
340 REM DRAW PENDULUM
350 XDRAW 1 AT X,Y
360 REM PAUSE
370 FOR T = 1 TO PDL(0): NEXT
380 REM ERASE PENDULUM
390 XDRAW 1 AT X,Y
400 NEXT
410 REM TONE
420 XDRAW 1 AT X,Y: POKE 768,255: POKE 769,10: CALL 770: XDRAW 1 AT X,Y
430 REM START OVER
440 GOTO 200
450 REM DATA FOR MACH.LANG.
460 DATA 173,48,192,136,208,5,206,1,3,240,9,202,208,245,174,0,3,76,2,3,96,1,0,4,0,4,4,0,252,29
470 REM POKE MACH.LANG.
480 FOR PKE = 770 TO 790
490 READ P: POKE PKE,P
500 NEXT
510 FOR PKE = 7676 TO 7682
520 READ P: POKE PKE,P
530 NEXT : READ P: POKE 232,P: POKE 115,P: READ P: POKE 233,P: POKE 116,P
540 RETURN
550 REM ONERR BRINGS US HERE
560 HOME : TEXT : END
565 REM
567 REM
570 REM +-------------------+
580 REM : V A R I A B L E S :
590 REM : ----- :
600 REM : P...POKE VALUES :
610 REM : PKE.MEMORY LOC :
620 REM : R..."ROT" SHAPE :
630 REM : T...FOR/NEXT PAUSE:
640 REM : X...HORIZ. LOC.FOR:
650 REM : SHAPE DRAW :
660 REM : Y...VERT. LOC. FOR:
670 REM : SHAPE DRAW :
680 REM +-------------------+
690 REM
700 REM "HI-RES METRONOME"
710 REM
720 REM BY JIM GANZ
730 REM
740 REM * * * *
750 REM
760 REM AN UNCALIBRATED
770 REM METRONOME.
780 REM
790 REM REQUIREMENTS:
800 REM APPLESOFT ][ AND
810 REM HAND CONTROLLERS
820 REM
830 REM * * * *
831 REM
832 REM CLASSIFIED
833 REM -PUBLIC DOMAIN-
834 REM NOVEMBER, 1981
840 REM
850 REM PLEASE RETAIN LINES
860 REM 565-900
870 REM IN ALL COPIES.
880 REM -THANK YOU!!
890 REM
900 REM * * * *